#This program builds plans from pyfft

#from __future__ import division
import numpy as np
from pyfft.cl import Plan
import pyopencl as cl
import pyopencl.array as cl_array
import time
start_size = 4 
end_size = 12 

ctx = cl.create_some_context()
queue = cl.CommandQueue(ctx)
for ii in range(start_size,end_size+1): 
    N = 2**ii
    start_time = time.time()
    plan = Plan((N, N), queue=queue, dtype=np.complex128, fast_math=False)
    print 'time spent making plan for size', N, 'is', time.time()-start_time, 'seconds'
